import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App.jsx'
import './index.css'
import { App as AntdApp, Button, ConfigProvider } from "antd"
import { BrowserRouter } from 'react-router-dom';
import APPOPTIONS from './app.config.js';
import { AliveScope } from 'react-activation';
import zhCN from 'antd/locale/zh_CN';
// for date-picker i18n
import 'dayjs/locale/zh-cn';
import theme from './theme/index.js'


ReactDOM.createRoot(document.getElementById('root')).render(
  <React.StrictMode>

    <BrowserRouter basename='/admin' >
      <AliveScope>
        <ConfigProvider locale={zhCN}
          theme={theme}
        >

          <AntdApp>
            <App />
          </AntdApp>
        </ConfigProvider>
      </AliveScope>
    </BrowserRouter>
  </React.StrictMode>,
)
